package com.sun.config;

import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author SunRui
 * @description Spring config
 * @date 2024/10/3 20:42
 */
@Configuration
@ComponentScan("com.sun")
@PropertySource({"classpath:jdbc.properties","classpath:log4j.properties"})
@Import({JdbcConfig.class, MybatisConfig.class})
@EnableAspectJAutoProxy //Aop
@EnableTransactionManagement //开启事务注解
public class SpringConfig {
}
